package com.info.consumer.feign;

import com.info.auth.AuthFeignConfiguration;
import com.info.consumer.feign.hystrix.HelloServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by pengshuo on 2018/1/7 9:51
 * Description:
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@FeignClient(name = "info-provider",configuration= AuthFeignConfiguration.class,fallback = HelloServiceFallback.class)
public interface HelloService {


    @GetMapping(value = {"provider/hello"})
    String hello();

}
